package com.dc.base.exception;

public class BusinessException extends  RuntimeException {
    private int code;
    private String message;


    public BusinessException(String message){
        this.code = 1000;
        this.message = message;
    }

    public BusinessException(int code,String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
